<?php

class Admini_IndexController extends Uuch_ManageController{
      public function init() {
          parent::init();
          if ($this->isLogin()){
                    $this->view->user = $this->currentUser();
                    $this->view->mainCount= Application_Model_Mail::getUnRead($this->currentUser()->id);
            }else{
                    $this->view->user = new Application_Model_User(array('email'=>'None','Id'=>0));
            }

            $this->view->isLogin = $this->isLogin();
          
      }
      
      
      public function indexAction()
      {
          $this->_redirector = $this->_helper->getHelper('Redirector');
          $this->_redirector->gotoUrl('/admini/manageuser/index');
      }
      
      public function  loginAction()
      {
          exit("login");
      }
      
      
      
}
